<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('考试分类')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-exam_id" data-rule="required" min="0" data-source="exam/index" class="form-control selectpage" name="row[exam_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('专业名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" title="专业曾用名">{:__('历史名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-old_name" class="form-control" name="row[old_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('专业编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" class="form-control" name="row[code]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('考试层次')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[layer]', ['0'=>__('请选择'),'1'=>__('本科'), '2'=>__('专科')], '')}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" title="考试地区，不设置则全部地区可查看">{:__('适用地区')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province_id"  min="0" data-source="region/index" class="form-control selectpage" name="row[province_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" title="如果设置不支持,用户只能通过购买单个科目的方式购买专业内的课程">{:__('会员套餐')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_support_vip_combo]', ['1'=>__('支持通过会员套餐开通'), '0'=>__('不支持通过会员套餐开通')],1)}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排序权重')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" placeholder="排序值,值越大,越靠前"  class="form-control" name="row[sort]" type="number" value="0">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
